sap.ui.define([], () => {
	"use strict";

	return {

		statusText(sStatus) {
			const oResourceBundle = this.getOwnerComponent().getModel("i18n").getResourceBundle();
			switch (sStatus) {
				case "A":
					return oResourceBundle.getText("invoiceStatusA");
				case "B":
					return oResourceBundle.getText("invoiceStatusB");
				case "C":
					return oResourceBundle.getText("invoiceStatusC");
				default:
					return sStatus;
			}
		},

		statusTextTwoPar: function(par1, par2) {
			let return1 = "par1:" + par1;
			let return2 = "par2:" + par2;
			return return1 + return2;
		},

		dateTransform: function(date) {
			if(date){
				return date.toISOString().slice(0, 19).replace('T', ' ')
			}
			else {
				return null;
			}
		}
	};
});